#include "stuff.h"
#include "line.h"

#ifndef PROJECTILE2_H
#define PROJECTILE2_H

class Projectile2
{
	private:
		
		Line scanLine;

		GLfloat length;
		GLfloat velocity;
		double time;

		Vector position;
		Vector direction;

	public:
		Line tracer;

		Projectile2();
		Projectile2(Vector position, Vector direction, GLfloat velocity, GLfloat length, double time);



		GLfloat getVelocity();

		void setVelocity(GLfloat velocity);

		bool isActive();

		void Projectile2::react(Vector intersect);

		void update(double deltaTime);
		void draw();

};

#endif